package com.wyh.domain.dto.groupfour.customerDTO;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.time.LocalDate;
import java.util.List;


@Data
public class ContactsDTO {
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    @ApiModelProperty(value = "手机号", required = true)
    private String telephone;
    @ApiModelProperty(value = "客户id", required = true)
    private List<Integer> customerId;
    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDate activetime;
    @ApiModelProperty(value = "角色", required = true)
    private int role;
}
